//
//  JingXuan_FenLei_TableViewCell.m
//  iBook
//
//  Created by apple on 15/1/20.
//  Copyright (c) 2015年 wikiflyer. All rights reserved.
//

#import "JingXuan_FenLei_TableViewCell.h"
#import <QuartzCore/QuartzCore.h>
#import "CommonFunc.h"

@implementation JingXuan_FenLei_TableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


+ (id)homeCellCellOwner:(id)owner {
    if (!owner) {
        return nil;
    }
    NSArray *nibEles = [[NSBundle mainBundle] loadNibNamed:@"JingXuan_FenLei_TableViewCell" owner:owner options:nil];
    for (id cellObject in nibEles) {
        if ([cellObject isKindOfClass:[JingXuan_FenLei_TableViewCell class]]) {
            return (JingXuan_FenLei_TableViewCell *)cellObject;
        }
    }
    return nil;
}

-(void)initWithSome:(NSDictionary *)theDic{
    _btn1.layer.cornerRadius = 6;
    _btn1.layer.borderColor = [UIColor colorWithRed:23/255.f green:126/255.f blue:251/255.f alpha:1].CGColor;
    _btn1.layer.borderWidth = 2;
    
    _label1.text=[NSString stringWithFormat:@"%@",[theDic objectForKey:@"onm"]];
    _label2.text=[NSString stringWithFormat:@"%@",[theDic objectForKey:@"ath"]];
    _label3.text=[NSString stringWithFormat:@"%@",[theDic objectForKey:@"dto"]];
    
    NSData* dataImage = [CommonFunc dataWithBase64EncodedString:[NSString stringWithFormat:@"%@",[theDic objectForKey:@"pic"]]];
    _imageV.image=[UIImage imageWithData:dataImage];
    
}



@end
